package dao;

import interfaceDAO.IDAOPreference;
import interfaceDAO.IDAOStation;
import interfaceDAO.IDAOUser;
import dao.fake.FakeDAOPreference;
import dao.fake.FakeDAOStation;
import dao.fake.FakeDAOUser;

public class DAOFactory {
	private static boolean useFakeImp = false;

	public static IDAOStation getDAOStation() {
		if (useFakeImp) {
			return new FakeDAOStation();
		} else {
			return new DAOStation();
		}
	}

	public static IDAOPreference getDAOPreference() {
		if (useFakeImp) {
			return new FakeDAOPreference();
		} else {
			return new DAOPreference();
		}
	}

	public static IDAOUser getDAOUser() {
		if (useFakeImp) {
			System.out.println("DAOFactory.getDAOUser():: Fake DAO");
			return new FakeDAOUser();
		} else {
			System.out.println("DAOFactory.getDAOUser()::: Real DAO");
			return new DAOUser();
		}
	}

}
